<?php	
		$nom = $_POST['VIS_NOM'];
		$prenom = $_POST['Vis_PRENOM'];
		$adr = $_POST['VIS_ADRESSE'];
		$cp = $_POST['VIS_CP'];
		$ville = $_POST['VIS_VILLE'];
		
		include $script['classConnexion'];
		$laBase = new clstBDD;
		$laBase->connecte($db ['dsn'],$db ['userid'],$db ['pass']);
		
		if ($laBase->getConnexion() != null) {
			//on interroge la base
			$laBase->requeteAction("update visiteur set vis_nom='$nom', vis_prenom='$prenom', vis_adresse='$adr', vis_cp='$cp', vis_ville='$ville' where vis_matricule='".$_SESSION['VIS_MATRICULE']."'");
		}
		
		$contenu = $page['ModifierVisiteur'];
		$title = 'Visiteur modifier';
		
?>